package com.chwn.curiousdiary.ui.user.activity;

import android.view.View;

import com.chwn.curiousdiary.R;
import com.chwn.curiousdiary.ui.user.fragment.DownloadFragment;
import com.chwn.harulib.base.BaseActivity;
import com.gyf.barlibrary.ImmersionBar;

/**
 * Created by Myshikin on 2017/4/27.
 */

public class DownLoadActivity extends BaseActivity {


    @Override
    protected int getLayoutId() {
        return R.layout.activity_download;
    }

    @Override
    protected void initView() {
        setTitleText("我的下载");
        initnavigationBarColor(-1);
        findViewById(R.id.ib_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        DownloadFragment downloadFragment = new DownloadFragment();
        downloadFragment.setLoadDataNow(true);
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.fl_content, downloadFragment)
                .commit();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ImmersionBar.with(this).destroy();
    }
}
